refactor trackfilter.
authortsteven4 <tsteven4@gmail.com>
Tue, 8 Jan 2019 23:09:05 +0000 (16:09 -0700)
committertsteven4 <tsteven4@gmail.com>
Tue, 8 Jan 2019 23:09:05 +0000 (16:09 -0700)
commiteb215a880182f6a984e9d323362f0cb13fae84c9
treeccdeec43f91ed7454aa466b673eaf19dcacce3da
parentbc6b26d4de88285bf51c5744e8baa269ea74d53b
refactor trackfilter.

use std::sort, stable_sort instead of qsort.
use QList instead of malloc'd arrays.
minimize the use of duplicated information (track_ct, track_pts, timeless_pts
first_time, last_time), and maintain the remaining
duplicated information (track_list, a possible sorted version of my_track_head).
use auto some more.
eliminate some redundant casting.
eliminate atoi.
trackfilter.cc
trackfilter.h